//:C07:VectorOverflow.cpp {-bor}
// Shows the copy-construction and destruction
// that occurs when a vector must reallocate.
// {L} Noisy
#include <cstddef>
#include <iostream>
#include <string>
#include <vector>
#include "Noisy.h"
using namespace std;

int man(int argc, char* argv[])
{
    int size = 1000;
    if(argc >= 2)
    {
        size = atoi(argv[1]);
    }
    
    vector<Noisy> vn;
    Noisy n;
    for (int i = 0; i < size; i++)
    {
        vn.push_back(n);
    }
    
    cout << "\n cleaning up " << endl;
}